package 真题;/**
 * @author： li
 * @date： 2022-03-09 21:08
 * @version 1.0
 */

public class 直线_未解决 {
    public static class point{
        private int x;
        private int y;

        public point() {
        }

        public point(int x, int y) {
            this.x = x;
            this.y = y;
        }

        public int getX() {
            return x;
        }

        public void setX(int x) {
            this.x = x;
        }

        public int getY() {
            return y;
        }

        public void setY(int y) {
            this.y = y;
        }
    }
    public static int gcd(int a, int b) {
        return b == 0 ? a : gcd(b, a % b);
    }

    public static void main(String[] args) {
    point[] points = new point[450];
    int i=0;
    //记录各个点
    for(int x=0;x<=19;x++)
        for(int y=0;y<=20;y++){
            points[i] = new point(x,y);
            i++;
        }
    for(int j=0;j<420;j++) {
        System.out.println("(" + points[j].x + "," + points[j].y + ")");
        System.out.println("  ");
    }
    }
}
